projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a175054
)
(Fexpand_abbrev): Insert before deleting.
author
Richard M. Stallman
<rms@gnu.org>
Fri, 29 Aug 2003 16:14:26 +0000
(16:14 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 29 Aug 2003 16:14:26 +0000
(16:14 +0000)
src/abbrev.c
patch
|
blob
|
history
diff --git
a/src/abbrev.c
b/src/abbrev.c
index dabc03b2a556f915693caf7971b4f19c39a77543..f6253f06ded6a9facd878dbc9641ec123fbfdedc 100644
(file)
--- a/
src/abbrev.c
+++ b/
src/abbrev.c
@@
-356,10
+356,13
@@
Returns the abbrev symbol, if expansion took place. */)
{
SET_PT (wordstart);
- del_range_both (wordstart, wordstart_byte, wordend, wordend_byte, 1);
-
insert_from_string (expansion, 0, 0, SCHARS (expansion),
SBYTES (expansion), 1);
+ del_range_both (PT, PT_BYTE,
+ wordend + (PT - wordstart),
+ wordend_byte + (PT_BYTE - wordstart_byte),
+ 1);
+
SET_PT (PT + whitecnt);
if (uccount && !lccount)